<template>
	<view>
		<view>
			<view class="nav">
				<uni-nav-bar leftWidth="750rpx"   left-icon="back" leftText="我的发布" @clickLeft="back"></uni-nav-bar>
			</view>
		</view>
		<view class="fabu">
			<view class="select">
				<uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="text" activeColor="#4cd964"></uni-segmented-control>
			</view>   
				<view class="praise-1" v-show="current === 0">
						
				</view>
					
				<view v-show="current === 1">
						
						选项卡2的内容
				</view>
		</view>	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				items: ['社区', '评论'],
				current: 0
			}
		},
		methods: {
			onClickItem(e) {
			      if (this.current != e.currentIndex) {
			        this.current = e.currentIndex;
			      }
			    },
			back(){
				uni.switchTab({
					url:'/pages/mine/mine'
				})
			}
		}
	}
</script>

<style>
.nav{
	
	
	height: 140rpx;
	width: 750rpx;
	display: flex;
	align-items: center;
}
</style>
